package app.mvp.application;

import android.app.Application;

import app.mvp.BbqbUserBean;
import manager.HttpManager;

/**
 * Created by 刘智强 on 2017/4/7.
 */

public class MVPFrameApplication extends Application {
    private static MVPFrameApplication instance;
    public  static String PUBLIC_KEY="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDiyM1smDlSwZg2dhEe/SDhCDigSn8F6w0C2qY+mXAgNriBCInO86rM6mxJGMRcltehmGGQQAoHWneFIUBkSAoHpY4chNgP+00z4s/jW7vWoTm8Jybr3z2AcG9Rz2eOgN+su1tLAIbt4DEhL7hlLcEHEMGqDcNdTdXorlmVocKMQIDAQAB";
    public  static  String BASE_URL="https://app.yidai.com/";
    private BbqbUserBean userBean;

    public BbqbUserBean getUserBean() {
        return userBean;
    }

    public void setUserBean(BbqbUserBean userBean) {
        this.userBean = userBean;
    }

    public static MVPFrameApplication getInstance() {
        if (instance == null) {
            instance = new MVPFrameApplication();
        }
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        HttpManager.getInstance().init("android", "1.3.0", "api", "1.2",BASE_URL,PUBLIC_KEY);


    }
}
